﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.ComputationUnitVMs
{
    public partial class ComputationUnitTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ComputationUnit._UnitCode")]
        public ExcelPropety UnitCode_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.UnitCode);
        [Display(Name = "_Model._ComputationUnit._UnitName")]
        public ExcelPropety UnitName_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.UnitName);
        //[Display(Name = "_Model._ComputationUnit._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.CreateTime, true);
        //[Display(Name = "_Model._ComputationUnit._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._ComputationUnit._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.CreateBy);
        //[Display(Name = "_Model._ComputationUnit._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.UpdateBy);
        //[Display(Name = "_Model._ComputationUnit._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.IsValid);
        //[Display(Name = "_Model._ComputationUnit._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ComputationUnit>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ComputationUnitImportVM : BaseImportVM<ComputationUnitTemplateVM, ComputationUnit>
    {
            //import

    }

}